package yogaModel

import (
	"time"
)

type ReqOrder struct {
	Id                 int       `json:"id"`
	FromId             int       `json:"from_id"`
	UserId             int       `json:"user_id"`
	TotalAmount        float32   `json:"total_amount"`
	OrderNo            string    `json:"order_no"`
	SubMchId           string    `json:"sub_mch_id"`
	IpAddr             string    `json:"ip_addr"`
	TransactionId      string    `json:"transaction_id"`
	Body               string    `json:"body"`
	DeletedAt          time.Time `xorm:"deleted" json:"-" form:"deleted_at" mapstructure:"deleted_at"`
	Acid               int       `json:"acid"`
	Openid             string    `json:"openid"`
	State              int       `json:"state"`
	SeparateState      int       `json:"separate_state"`
	PayTime            int       `json:"pay_time"`
	AppointmentRemarks string    `json:"appointment_remarks"`
	OrderType          int       `json:"order_type"`
	AppointmentsNumber int       `json:"appointments_number"`
	ClassId            int       `json:"class_id"`
	BuyTime            string    `json:"buy_time"`
	CreatedAt          string    `json:"created_at"`
}
type SearchOrder struct {
	PageNo   int    `json:"pageNo"`
	PageSize int    `json:"pageSize"`
	OrderNo  string `json:"order_no"`
	UserId   int    `json:"user_id"`
	State    int    `json:"state"`
}
type CreateOrder struct {
	Id                 int    `json:"id"`
	AppointmentRemarks string `json:"appointment_remarks"`
	AppointmentsNumber int    `json:"appointments_number"`
	BuyTime            string `json:"buy_time"`
}
type PayOrder struct {
	OrderNo  string `json:"order_no"  binding:"required" required_err:"参数缺失【order_no】"`
	Integral int    `json:"integral"`
	CouponId int    `json:"coupon_id"`
}
type OrderInfo struct {
	Score              int            `json:"score"`
	IsIntegral         int            `json:"is_integral"`
	IsCoupon           int            `json:"is_coupon"`
	Class              JoinGroupClass `json:"class"`
	AppointmentsNumber int            `json:"appointments_number"`
	AppointmentRemarks string         `json:"appointment_remarks"`
	BuyTime            string         `json:"buy_time"`
}
type RspOrderInfo struct {
	Id          int     `json:"id"`
	State       int     `json:"state"`
	Name        string  `json:"name"`
	Content     string  `json:"content"`
	Cover       string  `json:"cover"`
	Price       string  `json:"price"`
	VenueName   string  `json:"venue_name"`
	StartTime   string  `json:"start_time"`
	EndTime     string  `json:"end_time"`
	OrderNo     string  `json:"order_no"`
	TotalAmount float32 `json:"total_amount"`
	CreatedAt   string  `json:"created_at"`
}
